import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)


export default new Router({
    routes: [
        {
            path: '/',
            component:() => import('./view/home/home.vue'),
            redirect: '/map',
            children: [
                {
                    path: 'map',
                    component: () => import(/* webpackChunkName: "permission" */ './view/home/map.vue'),
                },
                {
                    path: 'index',
                    component: () => import(/* webpackChunkName: "permission" */ './view/index.vue'),
                },
            ]
        }
    ]
})